import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
    {
        path: "/",
        name: "Home",
        redirect: "/processinstance",
        component: () => import('@/views/Home.vue'),
        children:[
            {
                path: "/processinstance",
                name: "processinstance",
                component: () => import('@/views/pages/processinstance'),
                meta: {
                    title: '流程实例',
                },
            },
            {
                path: "/processconfig",
                name: "processconfig",
                component: () => import('@/views/pages/processconfig'),
                meta: {
                    title: '流程配置',
                },
            },
            {
                path: "/personconfig",
                name: "personconfig",
                component: () => import('@/views/pages/personconfig'),
                meta: {
                    title: '人员管理',
                },
            },
            {
                path: "/orgconfig",
                name: "orgconfig",
                component: () => import('@/views/pages/orgconfig'),
                meta: {
                    title: '机构管理',
                },
            },
            {
                path: "/roleconfig",
                name: "roleconfig",
                component: () => import('@/views/pages/roleconfig'),
                meta: {
                    title: '角色管理',
                },
            },
            
        ]
    },
]
const router = createRouter({
    history: createWebHashHistory(),// 开启历史模式
    routes: routes
})
router.beforeEach((to) => {
})

export default router